package com.wtwd.wtwddevice.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wtwd.wtwddevice.model.entity.DeviceBloodOxygenTotal;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author mjy
 * @since 2024-05-29
 */
public interface IDeviceBloodOxygenTotalService extends IService<DeviceBloodOxygenTotal> {

    /**
     * 按天插入或者更新血氧总数
     *
     * @param deviceBloodOxygenTotal
     * @return
     */
    boolean insertOrUpdate(DeviceBloodOxygenTotal deviceBloodOxygenTotal);

    /**
     * 根据设备id获取某一天的血氧数
     * @param deviceId
     * @param time
     * @return
     */
    DeviceBloodOxygenTotal getDeviceBloodOxygenTotal(Long deviceId, String time);
}
